import { Component } from 'react';
import { Input } from 'antd';
const { Search } = Input;
class EquipmentHeader extends Component {
    constructor(props) {
        super(props);
        this.state = { 
            SearchData:[],
            testData:[]
         }
    }
    // onSearch(){
    //     setTimeout(() => {
    //         this.setState({ SearchData: this.testData },()=>{
    //             this.props.getSearchData(this.state.SearchData);
    //         });
    //     }, 2000);
    // }
    render() { 
        return (
            <div><Search
            placeholder="input search text"
            enterButton="Search"
            size="large"
            onSearch={()=>this.onSearch()
            }
          /></div>
        );
    }
}
 
export default EquipmentHeader;